import { createRouter ,createWebHashHistory} from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(), //import.meta.env.BASE_URL
  routes: [
    {
      path: '/list',
      name: 'list',
      component: () => import('../views/list/AuditList.vue'),
    },
    {
      path: '/audit',
      name: 'audit',
      component: () => import('../views/audit/AuditAudit.vue')
    },
    {
      path: '/',
      redirect: () => {
        return { path: '/list' }
      },
    }
  ]
})

// router.beforeEach((to,from,next)=>{
//   console.log(to,from);
//   next()
// })

export default router
